import request from '@/utils/request'

/**
* 零件信息分页查询
* @param {查询条件} data
*/
export function listCksPart(query) {
  return request({
    url: 'business/CksPart/list',
    method: 'get',
    params: query,
  })
}

/**
* 新增零件信息
* @param data
*/
export function addCksPart(data) {
  return request({
    url: 'business/CksPart',
    method: 'post',
    data: data,
  })
}
/**
* 修改零件信息
* @param data
*/
export function updateCksPart(data) {
  return request({
    url: 'business/CksPart',
    method: 'PUT',
    data: data,
  })
}
/**
* 获取零件信息详情
* @param {Id}
*/
export function getCksPart(id) {
  return request({
    url: 'business/CksPart/' + id,
    method: 'get'
  })
}

/**
* 删除零件信息
* @param {主键} pid
*/
export function delCksPart(pid) {
  return request({
    url: 'business/CksPart/delete/' + pid,
    method: 'delete'
  })
}
